package my.study.java.lang.String;

public class NumberEqualEx02 {
	/**
	 * Number == 例子
	 * @param args
	 */
	public static void main(String []args) {
		Integer i1 = new Integer(10);
		Integer i2 = new Integer(10);
		System.out.println(i1 == i2);
		System.out.println(i1.equals(i2));
		
		Integer i3 = Integer.valueOf(10);
		Integer i4 = Integer.valueOf(10);
		System.out.println(i3 == i4);
		System.out.println(i3.equals(i4));
	}
}

